public class FoodItem
{
	final private int CALORIES_PER_GRAM = 9;
	 int fatGrams;
	protected int servings;

	public FoodItem (int numFatGrams,int numServings)
	{
		fatGrams = numFatGrams;
		servings = numServings;
	}
	//**********************************
	//Computes and returns the number of calories in this Food item
	//due to fat.
	//**********************************

	private int calories()
	{
		return fatGrams * CALORIES_PER_GRAM;
	}
	public int caloriesPerServing()
	{
		return (calories()/servings);
	}
}
